package com.chance.cc.crawler.development.command.publish.iask;

import com.chance.cc.crawler.core.CrawlerJob;
import com.chance.cc.crawler.development.command.job.domain.iask.searchKw.IaskSearchKwRealtimeCrawlerSchedulerJob;
import com.chance.cc.crawler.development.command.trigger.domain.iask.IaskCrawlerTriggerInfo;

/**
 * @Author Zhao.Hhuan
 * @Date Create in 2021/1/18 14:15
 * @Description
 *     爱问问答
 **/
public class IaskPublishCrawlerJob {

    public static void main(String[] args) {

        publishSimpleJob();
//        IaskCrawlerScript.publishCrawlerNodeScript();
    }

    public static void publishSimpleJob(){
        CrawlerJob crawlerJob = IaskSearchKwRealtimeCrawlerSchedulerJob.publishCrawlerScheduleJobInfo();
        IaskCrawlerTriggerInfo.simpleCrawlerScheduleTriggerInfo(crawlerJob.generateCrawlerKey(),crawlerJob.generateCrawlerTriggerKey());
    }

}
